Syntax:
GetIPAddress (hostname)
Description:
Returns the IP address of the machine specified by hostname. Use an empty
string to return the IP address of the local machine.
Parameter Description
hostname (optional) - The hostname of the machine for which to return the IP address. If this parameter isan empty string, the IP address of the current machine is returned.
Example:
Sub
Main
' Display the IP address of the current machine
MsgBox GetIPAddress ()
' Display the IP address of Yahoo!
MsgBox GetIPAddress ("www.yahoo.com")
End Sub